package com.example.tenant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.tenant.Converter.CustomStringConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 应用管理员表
 *
 * @author waterx
 * @date 2024-09-12 10:15:19
 */
@Data
@ColumnWidth(10)
@TableName("sys_client_admin")
@EqualsAndHashCode(callSuper = true)
public class SysClientAdmin extends Model<SysClientAdmin> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ExcelProperty("id")
    private String id;

    /**
     * 应用id
     */
    @ExcelProperty("client_id")
    private String clientId;

    /**
     * 用户id
     */
    @ExcelProperty("user_id")
    private String userId;

    /**
     * 激活状态
     */
    @ExcelProperty("activation")
    private String activation;

    /**
     * 备注
     */
    @ExcelProperty("remark")
    private String remark;

    /**
     * 创建人
     */
    @ExcelProperty(value = "create_by", converter = CustomStringConverter.class)
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty("create_time")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelProperty(value = "update_by", converter = CustomStringConverter.class)
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelProperty("update_time")
    private Date updateTime;

}